home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIImagingObjects.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
96KB
|
3,256 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIImagingObjects.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_HIImagingObject_xh
#define SOM_HIImagingObject_xh
class HIImagingObject;
#define HIImagingObject_MajorVersion 0
#define HIImagingObject_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <Quickdraw.h>
#include <TextEdit.h>
#include <TextObjects.h>
#include <Types.h>
#include <Resources.h>
#include <HIObjectTypes.h>
#include <HIImagingObjectTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef HIImagingObject_API
#define HIImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIImagingObjectCClassData HIImagingObjectClassData
#define HIImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HIImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken NewImage;
somMToken DisposeImage;
somMToken InitFromAERecord;
somMToken WriteToAERecord;
somMethodProc *GetImageType;
somMToken MeasureImage;
somMToken DrawImage;
somMethodProc *GetHIImagingObject;
somMToken GetNewImage;
somMethodProc *GetNewImageFromResource;
somMToken CloneImage;
somMToken ReleaseImage;
somMToken GetImageOwnerCount;
} SOMDLINK HIImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HIImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIImagingObject_NewImage)(HIImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_GetNewImage)(HIImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HIImagingObject_CloneImage)(HIImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_ReleaseImage)(HIImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HIImagingObject_GetImageOwnerCount)(HIImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_InitFromAERecord)(HIImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_WriteToAERecord)(HIImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_MeasureImage)(HIImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_DrawImage)(HIImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_DisposeImage)(HIImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HIImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HIImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_HIImagingObject_somInit)(HIImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIImagingObject_somUninit)(HIImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIImagingObject_somDuplicateReference)(HIImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIImagingObject_somCompareReference)(HIImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIImagingObject_somRelease)(HIImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIImagingObject_somFree)(HIImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIImagingObject_somCanDelete)(HIImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIImagingObject_somGetClass)(HIImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HIImagingObject_somGetClassName)(HIImagingObject *somSelf);
typedef long (* SOMLINK somTD_HIImagingObject_somGetSize)(HIImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIImagingObject_somIsA)(HIImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIImagingObject_somRespondsTo)(HIImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIImagingObject_somIsInstanceOf)(HIImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIImagingObject_somDispatch)(HIImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIImagingObject_somClassDispatch)(HIImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIImagingObject_somCastObj)(HIImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIImagingObject_somResetObj)(HIImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIImagingObject_somPrintSelf)(HIImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIImagingObject_somDumpSelf)(HIImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HIImagingObject_somDumpSelfInt)(HIImagingObject *somSelf,
long level);
}
#endif /* HIImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIImagingObject
*/
class HIImagingObject : public SOMObject
{
public:
// HIImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIImagingObject);
}
// HIImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HIImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HIImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HIImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIImagingObject */
#endif /* SOM_HIImagingObject_xh */
#ifndef SOM_HICompositeImagingObject_xh
#define SOM_HICompositeImagingObject_xh
class HICompositeImagingObject;
#define HICompositeImagingObject_MajorVersion 0
#define HICompositeImagingObject_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIImagingObject_xh
#include <HIImagingObjects.xh>
#endif
#ifndef HICompositeImagingObject_API
#define HICompositeImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HICompositeImagingObjectCClassData HICompositeImagingObjectClassData
#define HICompositeImagingObjectNewClass(major,minor) somNewVersionedClassReference(HICompositeImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HICompositeImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HICompositeImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HICompositeImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken SetImageSize;
somMToken AddSubImages;
somMToken SetSubImage;
somMToken GetSubImage;
somMToken GetSubImageCount;
} SOMDLINK HICompositeImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HICompositeImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HICompositeImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HICompositeImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_SetImageSize)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
UInt16 width,
UInt16 height);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_AddSubImages)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
UInt32 index,
UInt32 count);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_SetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
UInt32 index,
ConstHIImageRef subHIImageRef,
Rect* subImageRect,
HIImageOptions options);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_GetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
UInt32 index,
HIImageRef* subHIImageRefPtr,
Rect* subImageRect,
HIImageOptions* options);
typedef UInt32 (* SOMLINK somTD_HICompositeImagingObject_GetSubImageCount)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_NewImage)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_GetNewImage)(HICompositeImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HICompositeImagingObject_CloneImage)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_ReleaseImage)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HICompositeImagingObject_GetImageOwnerCount)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_InitFromAERecord)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_WriteToAERecord)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_MeasureImage)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_DrawImage)(HICompositeImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_DisposeImage)(HICompositeImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HICompositeImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HICompositeImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HICompositeImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
typedef void (* SOMLINK somTD_HICompositeImagingObject_somInit)(HICompositeImagingObject *somSelf);
typedef void (* SOMLINK somTD_HICompositeImagingObject_somUninit)(HICompositeImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HICompositeImagingObject_somDuplicateReference)(HICompositeImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somCompareReference)(HICompositeImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HICompositeImagingObject_somRelease)(HICompositeImagingObject *somSelf);
typedef void (* SOMLINK somTD_HICompositeImagingObject_somFree)(HICompositeImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somCanDelete)(HICompositeImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HICompositeImagingObject_somGetClass)(HICompositeImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HICompositeImagingObject_somGetClassName)(HICompositeImagingObject *somSelf);
typedef long (* SOMLINK somTD_HICompositeImagingObject_somGetSize)(HICompositeImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somIsA)(HICompositeImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somRespondsTo)(HICompositeImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somIsInstanceOf)(HICompositeImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somDispatch)(HICompositeImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somClassDispatch)(HICompositeImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somCastObj)(HICompositeImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HICompositeImagingObject_somResetObj)(HICompositeImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HICompositeImagingObject_somPrintSelf)(HICompositeImagingObject *somSelf);
typedef void (* SOMLINK somTD_HICompositeImagingObject_somDumpSelf)(HICompositeImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HICompositeImagingObject_somDumpSelfInt)(HICompositeImagingObject *somSelf,
long level);
}
#endif /* HICompositeImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HICompositeImagingObject
*/
class HICompositeImagingObject : public HIImagingObject
{
public:
// HICompositeImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HICompositeImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HICompositeImagingObject);
}
// HICompositeImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: SetImageSize */
OSStatus SetImageSize(Environment *ev,
HIImageRef imageRef,
UInt16 width,
UInt16 height)
{
return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,SetImageSize)
(this,ev,imageRef,width,height);
}
/* method: AddSubImages */
OSStatus AddSubImages(Environment *ev,
HIImageRef imageRef,
UInt32 index,
UInt32 count)
{
return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,AddSubImages)
(this,ev,imageRef,index,count);
}
/* method: SetSubImage */
OSStatus SetSubImage(Environment *ev,
HIImageRef imageRef,
UInt32 index,
ConstHIImageRef subHIImageRef,
Rect* subImageRect,
HIImageOptions options)
{
return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,SetSubImage)
(this,ev,imageRef,index,subHIImageRef,subImageRect,options);
}
/* method: GetSubImage */
OSStatus GetSubImage(Environment *ev,
ConstHIImageRef imageRef,
UInt32 index,
HIImageRef* subHIImageRefPtr,
Rect* subImageRect,
HIImageOptions* options)
{
return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,GetSubImage)
(this,ev,imageRef,index,subHIImageRefPtr,subImageRect,options);
}
/* method: GetSubImageCount */
UInt32 GetSubImageCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HICompositeImagingObject,HICompositeImagingObject,GetSubImageCount)
(this,ev,imageRef);
}
/*
* -- Inherited methods
*/
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HICompositeImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HICompositeImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HICompositeImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HICompositeImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HICompositeImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HICompositeImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HICompositeImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HICompositeImagingObject */
#endif /* SOM_HICompositeImagingObject_xh */
#ifndef SOM_HIIconImagingObject_xh
#define SOM_HIIconImagingObject_xh
class HIIconImagingObject;
#define HIIconImagingObject_MajorVersion 0
#define HIIconImagingObject_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <Quickdraw.h>
#include <TextEdit.h>
#include <TextObjects.h>
#include <Types.h>
#include <HIObjectTypes.h>
#include <HIImagingObjectTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIImagingObject_xh
#include <HIImagingObjects.xh>
#endif
#ifndef HIIconImagingObject_API
#define HIIconImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIIconImagingObjectCClassData HIIconImagingObjectClassData
#define HIIconImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIIconImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIIconImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIIconImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HIIconImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken SetIcon;
somMToken GetIcon;
} SOMDLINK HIIconImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIIconImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIIconImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HIIconImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_SetIcon)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
Handle iconSuite);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_GetIcon)(HIIconImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
Handle* iconSuitePtr);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_NewImage)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_GetNewImage)(HIIconImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HIIconImagingObject_CloneImage)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_ReleaseImage)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HIIconImagingObject_GetImageOwnerCount)(HIIconImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_InitFromAERecord)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_WriteToAERecord)(HIIconImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_MeasureImage)(HIIconImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_DrawImage)(HIIconImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_DisposeImage)(HIIconImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HIIconImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HIIconImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIIconImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
typedef void (* SOMLINK somTD_HIIconImagingObject_somInit)(HIIconImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIIconImagingObject_somUninit)(HIIconImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIIconImagingObject_somDuplicateReference)(HIIconImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somCompareReference)(HIIconImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIIconImagingObject_somRelease)(HIIconImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIIconImagingObject_somFree)(HIIconImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somCanDelete)(HIIconImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIIconImagingObject_somGetClass)(HIIconImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HIIconImagingObject_somGetClassName)(HIIconImagingObject *somSelf);
typedef long (* SOMLINK somTD_HIIconImagingObject_somGetSize)(HIIconImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somIsA)(HIIconImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somRespondsTo)(HIIconImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somIsInstanceOf)(HIIconImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somDispatch)(HIIconImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somClassDispatch)(HIIconImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somCastObj)(HIIconImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIIconImagingObject_somResetObj)(HIIconImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIIconImagingObject_somPrintSelf)(HIIconImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIIconImagingObject_somDumpSelf)(HIIconImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HIIconImagingObject_somDumpSelfInt)(HIIconImagingObject *somSelf,
long level);
}
#endif /* HIIconImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIIconImagingObject
*/
class HIIconImagingObject : public HIImagingObject
{
public:
// HIIconImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIIconImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIIconImagingObject);
}
// HIIconImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: SetIcon */
OSStatus SetIcon(Environment *ev,
HIImageRef imageRef,
Handle iconSuite)
{
return SOM_ResolveD(this,HIIconImagingObject,HIIconImagingObject,SetIcon)
(this,ev,imageRef,iconSuite);
}
/* method: GetIcon */
OSStatus GetIcon(Environment *ev,
ConstHIImageRef imageRef,
Handle* iconSuitePtr)
{
return SOM_ResolveD(this,HIIconImagingObject,HIIconImagingObject,GetIcon)
(this,ev,imageRef,iconSuitePtr);
}
/*
* -- Inherited methods
*/
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIIconImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HIIconImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HIIconImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HIIconImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIIconImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIIconImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIIconImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIIconImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIIconImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIIconImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIIconImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIIconImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIIconImagingObject */
#endif /* SOM_HIIconImagingObject_xh */
#ifndef SOM_HIPatternImagingObject_xh
#define SOM_HIPatternImagingObject_xh
class HIPatternImagingObject;
#define HIPatternImagingObject_MajorVersion 0
#define HIPatternImagingObject_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <Quickdraw.h>
#include <TextEdit.h>
#include <TextObjects.h>
#include <Types.h>
#include <HIObjectTypes.h>
#include <HIImagingObjectTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIImagingObject_xh
#include <HIImagingObjects.xh>
#endif
#ifndef HIPatternImagingObject_API
#define HIPatternImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPatternImagingObjectCClassData HIPatternImagingObjectClassData
#define HIPatternImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPatternImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPatternImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIPatternImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HIPatternImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken SetPattern;
somMToken GetPattern;
} SOMDLINK HIPatternImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPatternImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPatternImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HIPatternImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_SetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
PixPatHandle pattern);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_GetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
PixPatHandle* pattern);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_NewImage)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_GetNewImage)(HIPatternImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HIPatternImagingObject_CloneImage)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_ReleaseImage)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HIPatternImagingObject_GetImageOwnerCount)(HIPatternImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_InitFromAERecord)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_WriteToAERecord)(HIPatternImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_MeasureImage)(HIPatternImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_DrawImage)(HIPatternImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_DisposeImage)(HIPatternImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HIPatternImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HIPatternImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPatternImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
typedef void (* SOMLINK somTD_HIPatternImagingObject_somInit)(HIPatternImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPatternImagingObject_somUninit)(HIPatternImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPatternImagingObject_somDuplicateReference)(HIPatternImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somCompareReference)(HIPatternImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIPatternImagingObject_somRelease)(HIPatternImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPatternImagingObject_somFree)(HIPatternImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somCanDelete)(HIPatternImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIPatternImagingObject_somGetClass)(HIPatternImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HIPatternImagingObject_somGetClassName)(HIPatternImagingObject *somSelf);
typedef long (* SOMLINK somTD_HIPatternImagingObject_somGetSize)(HIPatternImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somIsA)(HIPatternImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somRespondsTo)(HIPatternImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somIsInstanceOf)(HIPatternImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somDispatch)(HIPatternImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somClassDispatch)(HIPatternImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somCastObj)(HIPatternImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIPatternImagingObject_somResetObj)(HIPatternImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPatternImagingObject_somPrintSelf)(HIPatternImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPatternImagingObject_somDumpSelf)(HIPatternImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HIPatternImagingObject_somDumpSelfInt)(HIPatternImagingObject *somSelf,
long level);
}
#endif /* HIPatternImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIPatternImagingObject
*/
class HIPatternImagingObject : public HIImagingObject
{
public:
// HIPatternImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIPatternImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIPatternImagingObject);
}
// HIPatternImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: SetPattern */
OSStatus SetPattern(Environment *ev,
HIImageRef imageRef,
PixPatHandle pattern)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIPatternImagingObject,SetPattern)
(this,ev,imageRef,pattern);
}
/* method: GetPattern */
OSStatus GetPattern(Environment *ev,
ConstHIImageRef imageRef,
PixPatHandle* pattern)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIPatternImagingObject,GetPattern)
(this,ev,imageRef,pattern);
}
/*
* -- Inherited methods
*/
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPatternImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HIPatternImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HIPatternImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HIPatternImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIPatternImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIPatternImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIPatternImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIPatternImagingObject */
#endif /* SOM_HIPatternImagingObject_xh */
#ifndef SOM_HIPictureImagingObject_xh
#define SOM_HIPictureImagingObject_xh
class HIPictureImagingObject;
#define HIPictureImagingObject_MajorVersion 0
#define HIPictureImagingObject_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <Quickdraw.h>
#include <TextEdit.h>
#include <TextObjects.h>
#include <Types.h>
#include <HIObjectTypes.h>
#include <HIImagingObjectTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIImagingObject_xh
#include <HIImagingObjects.xh>
#endif
#ifndef HIPictureImagingObject_API
#define HIPictureImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPictureImagingObjectCClassData HIPictureImagingObjectClassData
#define HIPictureImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPictureImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPictureImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIPictureImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HIPictureImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken SetPicture;
somMToken GetPicture;
} SOMDLINK HIPictureImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPictureImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPictureImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HIPictureImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_SetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
PicHandle picture);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_GetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
PicHandle* picturePtr);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_NewImage)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_GetNewImage)(HIPictureImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HIPictureImagingObject_CloneImage)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_ReleaseImage)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HIPictureImagingObject_GetImageOwnerCount)(HIPictureImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_InitFromAERecord)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_WriteToAERecord)(HIPictureImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_MeasureImage)(HIPictureImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_DrawImage)(HIPictureImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_DisposeImage)(HIPictureImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HIPictureImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HIPictureImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HIPictureImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
typedef void (* SOMLINK somTD_HIPictureImagingObject_somInit)(HIPictureImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPictureImagingObject_somUninit)(HIPictureImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPictureImagingObject_somDuplicateReference)(HIPictureImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somCompareReference)(HIPictureImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIPictureImagingObject_somRelease)(HIPictureImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPictureImagingObject_somFree)(HIPictureImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somCanDelete)(HIPictureImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIPictureImagingObject_somGetClass)(HIPictureImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HIPictureImagingObject_somGetClassName)(HIPictureImagingObject *somSelf);
typedef long (* SOMLINK somTD_HIPictureImagingObject_somGetSize)(HIPictureImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somIsA)(HIPictureImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somRespondsTo)(HIPictureImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somIsInstanceOf)(HIPictureImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somDispatch)(HIPictureImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somClassDispatch)(HIPictureImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somCastObj)(HIPictureImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIPictureImagingObject_somResetObj)(HIPictureImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPictureImagingObject_somPrintSelf)(HIPictureImagingObject *somSelf);
typedef void (* SOMLINK somTD_HIPictureImagingObject_somDumpSelf)(HIPictureImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HIPictureImagingObject_somDumpSelfInt)(HIPictureImagingObject *somSelf,
long level);
}
#endif /* HIPictureImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIPictureImagingObject
*/
class HIPictureImagingObject : public HIImagingObject
{
public:
// HIPictureImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIPictureImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIPictureImagingObject);
}
// HIPictureImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: SetPicture */
OSStatus SetPicture(Environment *ev,
HIImageRef imageRef,
PicHandle picture)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIPictureImagingObject,SetPicture)
(this,ev,imageRef,picture);
}
/* method: GetPicture */
OSStatus GetPicture(Environment *ev,
ConstHIImageRef imageRef,
PicHandle* picturePtr)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIPictureImagingObject,GetPicture)
(this,ev,imageRef,picturePtr);
}
/*
* -- Inherited methods
*/
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HIPictureImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HIPictureImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HIPictureImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HIPictureImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIPictureImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIPictureImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIPictureImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIPictureImagingObject */
#endif /* SOM_HIPictureImagingObject_xh */
#ifndef SOM_HITextImagingObject_xh
#define SOM_HITextImagingObject_xh
class HITextImagingObject;
#define HITextImagingObject_MajorVersion 0
#define HITextImagingObject_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <Fonts.h>
#include <Quickdraw.h>
#include <TextEdit.h>
#include <TextObjects.h>
#include <Types.h>
#include <HIObjectTypes.h>
#include <HIImagingObjectTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIImagingObject_xh
#include <HIImagingObjects.xh>
#endif
#ifndef HITextImagingObject_API
#define HITextImagingObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HITextImagingObjectCClassData HITextImagingObjectClassData
#define HITextImagingObjectNewClass(major,minor) somNewVersionedClassReference(HITextImagingObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HITextImagingObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HITextImagingObject class object, and the methods it introduces. */
SOMEXTERN struct HITextImagingObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken SetText;
somMToken GetText;
somMToken SetStrike;
somMToken GetStrike;
somMToken TextImageMgr__reserved0;
somMToken TextImageMgr__reserved1;
} SOMDLINK HITextImagingObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HITextImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HITextImagingObjectClassData
#endif
#endif
/*
* -- Typedefs for HITextImagingObject Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_SetText)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
TextObject textObject);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_GetText)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
TextObject* textObjectPtr);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_SetStrike)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
TextStrikeRef strike);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_GetStrike)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
TextStrikeRef* strike);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_NewImage)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef* imageRefPtr);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_GetNewImage)(HITextImagingObject *somSelf, Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr);
typedef HIImageRef (* SOMLINK somTD_HITextImagingObject_CloneImage)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_ReleaseImage)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef ItemCount (* SOMLINK somTD_HITextImagingObject_GetImageOwnerCount)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_InitFromAERecord)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_WriteToAERecord)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_MeasureImage)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_DrawImage)(HITextImagingObject *somSelf, Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_DisposeImage)(HITextImagingObject *somSelf, Environment *ev,
HIImageRef imageRef);
typedef HIImagingObject* (* SOMLINK somTD_HITextImagingObject_GetHIImagingObject)(Environment *ev,
HIImageType imageType);
typedef HIImageType (* SOMLINK somTD_HITextImagingObject_GetImageType)(Environment *ev,
ConstHIImageRef imageRef);
typedef OSStatus (* SOMLINK somTD_HITextImagingObject_GetNewImageFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr);
typedef void (* SOMLINK somTD_HITextImagingObject_somInit)(HITextImagingObject *somSelf);
typedef void (* SOMLINK somTD_HITextImagingObject_somUninit)(HITextImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HITextImagingObject_somDuplicateReference)(HITextImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somCompareReference)(HITextImagingObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HITextImagingObject_somRelease)(HITextImagingObject *somSelf);
typedef void (* SOMLINK somTD_HITextImagingObject_somFree)(HITextImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somCanDelete)(HITextImagingObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_HITextImagingObject_somGetClass)(HITextImagingObject *somSelf);
typedef corbastring (* SOMLINK somTD_HITextImagingObject_somGetClassName)(HITextImagingObject *somSelf);
typedef long (* SOMLINK somTD_HITextImagingObject_somGetSize)(HITextImagingObject *somSelf);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somIsA)(HITextImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somRespondsTo)(HITextImagingObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somIsInstanceOf)(HITextImagingObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somDispatch)(HITextImagingObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somClassDispatch)(HITextImagingObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somCastObj)(HITextImagingObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HITextImagingObject_somResetObj)(HITextImagingObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_HITextImagingObject_somPrintSelf)(HITextImagingObject *somSelf);
typedef void (* SOMLINK somTD_HITextImagingObject_somDumpSelf)(HITextImagingObject *somSelf,
long level);
typedef void (* SOMLINK somTD_HITextImagingObject_somDumpSelfInt)(HITextImagingObject *somSelf,
long level);
}
#endif /* HITextImagingObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HITextImagingObject
*/
class HITextImagingObject : public HIImagingObject
{
public:
// HITextImagingObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HITextImagingObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HITextImagingObject);
}
// HITextImagingObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: SetText */
OSStatus SetText(Environment *ev,
HIImageRef imageRef,
TextObject textObject)
{
return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,SetText)
(this,ev,imageRef,textObject);
}
/* method: GetText */
OSStatus GetText(Environment *ev,
ConstHIImageRef imageRef,
TextObject* textObjectPtr)
{
return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,GetText)
(this,ev,imageRef,textObjectPtr);
}
/* method: SetStrike */
OSStatus SetStrike(Environment *ev,
HIImageRef imageRef,
TextStrikeRef strike)
{
return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,SetStrike)
(this,ev,imageRef,strike);
}
/* method: GetStrike */
OSStatus GetStrike(Environment *ev,
ConstHIImageRef imageRef,
TextStrikeRef* strike)
{
return SOM_ResolveD(this,HITextImagingObject,HITextImagingObject,GetStrike)
(this,ev,imageRef,strike);
}
/*
* -- Inherited methods
*/
/* method: NewImage */
OSStatus NewImage(Environment *ev,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,NewImage)
(this,ev,imageRefPtr);
}
/* method: GetNewImage */
OSStatus GetNewImage(Environment *ev,
AESubDesc* initializer,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,GetNewImage)
(this,ev,initializer,imageRefPtr);
}
/* method: CloneImage */
HIImageRef CloneImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,CloneImage)
(this,ev,imageRef);
}
/* method: ReleaseImage */
OSStatus ReleaseImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,ReleaseImage)
(this,ev,imageRef);
}
/* method: GetImageOwnerCount */
ItemCount GetImageOwnerCount(Environment *ev,
ConstHIImageRef imageRef)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,GetImageOwnerCount)
(this,ev,imageRef);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
HIImageRef imageRef,
AESubDesc* dataForBaseClass,
AESubDesc* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,InitFromAERecord)
(this,ev,imageRef,dataForBaseClass,dataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
ConstHIImageRef imageRef,
AERecord* dataForSubclass,
AERecord* dataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,WriteToAERecord)
(this,ev,imageRef,dataForSubclass,dataForClass,dataFormat);
}
/* method: MeasureImage */
OSStatus MeasureImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
UInt32* widthPtr,
UInt32* heightPtr,
HIImageOptions measureOptions)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,MeasureImage)
(this,ev,imageRef,port,widthPtr,heightPtr,measureOptions);
}
/* method: DrawImage */
OSStatus DrawImage(Environment *ev,
ConstHIImageRef imageRef,
CGrafPtr port,
Rect* contentRect,
Rect* frameRect,
HIImageOptions drawOptions)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,DrawImage)
(this,ev,imageRef,port,contentRect,frameRect,drawOptions);
}
/* method: DisposeImage */
OSStatus DisposeImage(Environment *ev,
HIImageRef imageRef)
{
return SOM_ResolveD(this,HITextImagingObject,HIImagingObject,DisposeImage)
(this,ev,imageRef);
}
/* noself procedure: GetHIImagingObject */
static HIImagingObject* GetHIImagingObject(Environment *ev,
HIImageType imageType)
{
return ((somTD_HITextImagingObject_GetHIImagingObject)HIImagingObjectClassData.GetHIImagingObject)
(ev,imageType);
}
/* noself procedure: GetImageType */
static HIImageType GetImageType(Environment *ev,
ConstHIImageRef imageRef)
{
return ((somTD_HITextImagingObject_GetImageType)HIImagingObjectClassData.GetImageType)
(ev,imageRef);
}
/* noself procedure: GetNewImageFromResource */
static OSStatus GetNewImageFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIImageRef* imageRefPtr)
{
return ((somTD_HITextImagingObject_GetNewImageFromResource)HIImagingObjectClassData.GetNewImageFromResource)
(ev,objectInitializerResourceID,imageRefPtr);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HITextImagingObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HITextImagingObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HITextImagingObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HITextImagingObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HITextImagingObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HITextImagingObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HITextImagingObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HITextImagingObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HITextImagingObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HITextImagingObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HITextImagingObject */
#endif /* SOM_HITextImagingObject_xh */